/*
THIS FILE IS PART OF THE >>ADRENALIN-3D-GRAFIC-ENGINE<<
for latest info visit http://www.creative-games.de

Copyright (c) 2008-2009 by Marco Schneider

This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License (LGPL) as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
License for more details.

*/

#ifndef __ADL_DIRECTX11_VERTEXSHADER_H__
#define __ADL_DIRECTX11_VERTEXSHADER_H__

#pragma once

#include "../Defines.h"
#include "../Log.h"
#include "../ShaderHandler.h"
#include "../../interfaces/IVertexShader.h"
#include "DirectX10Device.h"

namespace Adrenalin 
{
	class ADRENALIN_API DirectX11VertexShader : public Adrenalin::IVertexShader
	{
	private:
		ID3D11VertexShader* _vertexShader;               // the pointer to the vertex shader
		Adrenalin::stringw  _file;
		Adrenalin::string   _function;
		ID3D11InputLayout*	_layout;
		ID3D10Blob*			_blob;
	public:
		DirectX11VertexShader();

		void Close();
		EResult LoadShader(Adrenalin::stringw& file, Adrenalin::string& function);

		Adrenalin::stringw GetFilename();
		Adrenalin::string  GetFunction();
		void	SetShader();
	};
}

#endif